How to serve git from local computer.

For just browsing files and revisions git instaweb is the right solution.

In addition if you want to set-up an ad-hock git server for sharing work (push/pull) with some colleagues (which hg serve also allows you to do), you can use:

$ git daemon --reuseaddr --base-path=. --export-all --verbose

Your colleagues will use it with something like: $ git clone git:///.git project